<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
<script>
    // 创建一个对象
    var boy={
        name : "zjc",
        age : 26,
        sex : "male",
        height : 180,
        eatNuddles : function fun (){
            console.log("吃面");
        }
    }
    // 更改属性值
    boy .age = 28;
    console.log(boy.age);
    // 更改方法
    
    // 增加属性值
    boy .weight = 120;
    console.log(boy);
    // 增加方法
    boy .play = function fun1 (){
        console.log("打篮球");
    }

    // 删除属性值
    delete boy.age;
    console.log(boy);
    // 删除方法






</script>
</body>
</html>